/* 侧边栏整体样式 - Ant Design 默认样式 */
.sidebar {
  background-color: #fafafa;
}

/* 侧边栏头部 - 简洁设计 */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.sidebar-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  white-space: nowrap;
}

.sidebar-toggle {
  color: #595959;
  border-radius: 4px;
  transition: all 0.2s;
}

.sidebar-toggle:hover {
  background-color: #f0f0f0;
  color: #1890ff;
}

/* 菜单样式 - Ant Design 默认样式 */
.sidebar-menu {
  border-right: none;
  background-color: transparent;
  padding-top: 16px;
}

.sidebar-menu-item {
  height: 48px !important;
  line-height: 48px !important;
  margin: 0 8px !important;
  border-radius: 6px !important;
  padding-left: 24px !important;
  color: #595959 !important;
  font-size: 14px;
  transition: all 0.2s;
}

.sidebar-menu-item:hover {
  background-color: #f0f7ff !important;
  color: #1890ff !important;
}

.sidebar-menu-item.ant-menu-item-selected {
  background-color: #e6f7ff !important;
  color: #1890ff !important;
  font-weight: 500;
}

.sidebar-menu-item .anticon {
  font-size: 16px;
  margin-right: 12px;
}

/* 底部退出按钮 - 简洁设计 */
.sidebar-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.sidebar-logout {
  width: 100%;
  justify-content: flex-start;
  color: #595959;
  border-radius: 6px;
  padding: 10px 16px;
  transition: all 0.2s;
}

.sidebar-logout:hover {
  background-color: #fff1f0;
  color: #ff4d4f;
}

/* 折叠状态优化 */
.ant-layout-sider-collapsed .sidebar-menu-item {
  padding-left: 16px !important;
  justify-content: center;
}

.ant-layout-sider-collapsed .sidebar-menu-item .anticon {
  margin-right: 0;
}

.ant-layout-sider-collapsed .sidebar-title {
  display: none;
}